home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Demos / AppMaker 2.0b3 / Demo AppMaker 2.0b3 / Examples / pre-built AMReminder / PowerPlant / CAdd.h < prev    next >
Encoding:
Text File  |  1995-10-05  |  2.2 KB  |  81 lines  |  [TEXT/MMCC]

  1. // CAdd.h -- dialog class
  2. // Created 10/5/95 4:49 PM by AppMaker
  3.  
  4. #pragma once
  5.  
  6. #include <LDialogBox.h>
  7.  
  8. class    LStream;
  9.  
  10. class    LStdButton;
  11. class    LEditField;
  12. class    LRadioGroup;
  13. class    LView;
  14. class    LStdCheckBox;
  15. class    LStdPopupMenu;
  16.  
  17. #define cmd_Add        'Add '
  18.  
  19. //----------
  20. class    CAdd :    public LDialogBox {
  21. public:    // these comprise the programming interface for using the dialog
  22.     static    CAdd*        CreateAdd        (LCommander        *inSuperCommander);
  23.  
  24.     virtual void        GetDateFieldString        (Str255        str);
  25.     virtual void        SetDateFieldString        (Str255        str);
  26.     virtual void        GetTimeFieldString        (Str255        str);
  27.     virtual void        SetTimeFieldString        (Str255        str);
  28.     virtual long        GetAmPmGroupChoice();
  29.     virtual void        SetAmPmGroupChoice        (long        choice);
  30.     virtual void        GetMessageFieldString        (Str255        str);
  31.     virtual void        SetMessageFieldString        (Str255        str);
  32.     virtual Boolean        GetDisplayIconCheckChoice();
  33.     virtual void        SetDisplayIconCheckChoice        (Boolean    choice);
  34.     virtual Boolean        GetDisplayAlertCheckChoice();
  35.     virtual void        SetDisplayAlertCheckChoice        (Boolean    choice);
  36.     virtual Boolean        GetPlaySoundCheckChoice();
  37.     virtual void        SetPlaySoundCheckChoice        (Boolean    choice);
  38.     virtual short        GetSoundPopupChoice();
  39.     virtual void        SetSoundPopupChoice        (short        choice);
  40.  
  41. public:    // these comprise the implementation
  42.     static    CAdd*    CreateAddStream    (LStream    *inStream);
  43.  
  44.                         CAdd();
  45.                         CAdd        (LStream    *inStream);
  46.     virtual                ~CAdd();
  47.  
  48.     virtual void        ListenToMessage        (MessageT    inMessage,
  49.                                              void        *ioParam);
  50.  
  51.     virtual Boolean        ObeyCommand            (CommandT    inCommand,
  52.                                              void        *ioParam = nil);
  53.     virtual void        FindCommandStatus    (CommandT    inCommand,
  54.                                              Boolean    &outEnabled,
  55.                                              Boolean    &outUsesMark,
  56.                                              Char16        &outMark,
  57.                                              Str255        outName);
  58.     virtual Boolean        FocusDraw();
  59.  
  60. protected:
  61.     static    void        RegisterClass();
  62.     virtual void        FinishCreateSelf();
  63.  
  64. protected:
  65.  
  66. protected:
  67.     static Boolean        sIsRegistered;
  68.  
  69.         LStdButton            *mOKButton;
  70.         LStdButton            *mCancelButton;
  71.         LEditField            *mDateField;
  72.         LEditField            *mTimeField;
  73.         LView                *mAmPmView;
  74.         LRadioGroup            *mAmPmGroup;
  75.         LEditField            *mMessageField;
  76.         LStdCheckBox            *mDisplayIconCheck;
  77.         LStdCheckBox            *mDisplayAlertCheck;
  78.         LStdCheckBox            *mPlaySoundCheck;
  79.         LStdPopupMenu            *mSoundPopup;
  80. };
  81.